package com.vcredit.creditcat.service;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.vcredit.creditcat.model.PersonInfo;
import com.vcredit.creditcat.persistence.base.PersonInfoMapper;
/**
 * 
 **/
@Service
public class PersonInfoService {
	@Autowired
    private PersonInfoMapper mapper;
    
    public void insert(PersonInfo obj){
    	mapper.insert(obj);
    }
    
    public void update(PersonInfo obj){
    	mapper.update(obj);
    }
    
    public List<PersonInfo> findAll(){
		return mapper.findAll();
	}
	
	private List<PersonInfo> find(PersonInfo obj){
		return mapper.find(obj);
	}

	public List<String> findMobileByPage(int start, int limit) {
		return mapper.findMobileByPage(start, limit);
	}

	public Long querytotal() {
		return mapper.querytotal();
	}
}